home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
sil2.zip
/
SIL2.DOC
< prev
Wrap
Text File
|
1985-10-14
|
14KB
|
395 lines
Silence
Version 2.0
Copywrite (c) 1985 by Carl Burtner
This Program Is In The Public Domain.
Users are encouraged to make as many copies as they
like and to distribute them to whomever they choose.
Under No Circumstances Is This Program To Be Sold.
If you have problems, questions, suggestions, or desire a
copy of this programs assembler listing,
please contact me.
Carl Burtner
435 Brandon Road
Rochester, N.Y. 14622
Silence Version 2.0
Silence is dedicated to keeping your PC quiet. Most program
sounds will be eliminated entirely or reduced to a series of
clicks. Some sound effects which use short duration tones
or turn the PC's interrupts off may not be silenced.
Compatibility
Silence should be compatible with most programs and IBM-PC
compatible computers. Silence 2.0 has some advanced options
which can enhance its ability to silence some previously
unsilenceable sounds. These options may not be compatible
with all programs. Incompatibility generally makes itself
evident by greatly slowing down the program. When in doubt,
Silences default settings have never been observed to cause
problems.
Display Adapters
To speed things up, Silence 2.0 uses direct writes to the
screen buffer for displaying the function access screen and
the copywrite notice. To do this, Silence does its best to
determine the type of display adapter installed. It is
possible that a non-standard adapter could fool Silence into
making a wrong assumption. If this happens the display will
most likely remain blank. To force Silence to ignore its
determination and use either the color or mono display
adapter enter the command "Sil2 c" for the color adapter or
"Sil2 m" for the mono adapter.
Installation
Silence is a resident program. Once installed, Silence
remains in the computers memory until it is turned off or
rebooted. To install Silence just type the name of the
program (Sil2) and hit the return key. Silence will
initialize and display a function access screen which allows
the setting of several options. If you don't wish to change
any options either hit the escape key once or hit the return
key several times to tab to the end of the screen. If you
wish you can install Silence without being presented with
the function access screen. To do this enter "Sil2 d" (the
d stands for default) without the quotes.
Silence's options may be changed at any time either by
entering one of the commands described below or by entering
Sil2 to use the function access screen. However, because
Silence is a resident program it is possible that another
resident program installed after Silence may make it
impossible to change Silence's settings. If this should
happen Silence will inform you. To correct the problem try
-1-
Silence Version 2.0
rebooting and installing Silence after any other resident
program being used.
Commands
Silence 2.0 supports the same commands as Silence 1.0.
These are:
Sil2 on - Turns Silence on. Program sounds will no
longer be heard. Error messages are returned
if Silence has not been installed or if
changing the setting is not possible.
Sil2 off - Turns Silence off. Program sounds will now be
heard. Error messages are returned if
SILENCE has not been installed or if changing
the setting is not possible.
In addition, Silence 2.0 adds the following commands:
Sil2 d - Installs Silence without displaying the
function access screen.
Sil2 c - Installs Silence and/or displays the function
access screen assuming that the color display
adapter is installed
Sil2 m - Installs Silence and/or displays the function
access screen assuming that the monochrome
display adapter is installed.
Only one command may be entered at a time.
Theory of Operation
System Clock
The IBM PC has a system clock that "ticks" 18.2 times a
second. Every time the clock ticks an interrupt is
generated. The interrupt causes the computer to stop
whatever it is doing and execute a short program stored at a
previously defined location in memory. The normal program
called at every clock tick updates the time of day and turns
off disk drive motors that have run too long. After
completing its task, the interrupt routine returns the
-2-
Silence Version 2.0
computer to doing exactly what it was doing before the
interrupt.
Sound Generation
Sound in the IBM PC is generated by a timer. The timer is
loaded by a program with the desired frequency (pitch) and
begins to run. The timers output tone goes to a gate
controlled by the computer. The gate is connected to the
speaker and allows the tone supplied by the timer to be
turned on and off.
Silence
Silence operates by taking over the interrupt generated by
the system clock. Every time the clock ticks, Silence is
called instead of the normal time of day routine. Once
called, Silence turns off the gate to the speaker and sets
up the timer so that it produces a click instead of a tone.
After this, Silence passes control to the normal clock tick
routine so that the time of day and disk drives will operate
normally. In this way, when a program produces a tone, the
tone will be turned off after 1/18.2 of a second and the
timer will only produce a click. It is possible for a
program to set the computer to ignore the system clock tick.
When a program does this, Silence is temporarily disabled
and cannot turn off the sound.
This summary has only covered Silence's basic operation.
Silence's advanced options such as Burst Delay and
Acceleration alter certain aspects of the way Silence works
to provide the user with greater silencing power. These
options are described more fully below.
Options
There are several options that may only be changed by using
the function access screen. To display these options enter
Sil2 (or "Sil2 c" or "Sil2 m" if your adapter